const http = require("utils/http.js");
const config = require("utils/config.js")
const common = require("utils/common.js");
const { api_list } = require("./utils/server_api");
App({
  common : common,
  config : config,
  http:http,
  api_list:api_list,
  onLaunch: function () {
    let _this = this;
    var token = wx.getStorageSync('token')
    console.log('token',token)
    if(!token){
      _this.globalData.isLanding = true
      http.getToken()
    }
  },
  globalData : {
    user_info:{
      nickname:'',
    },
    access_token:"",
    requestQueue: [],
  }
})
